<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/common/common_taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>梦网工具本</title>
<jsp:include page="/WEB-INF/pages/include/head.jsp"></jsp:include>
<link href="/css/code.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/general.js"></script>
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
<jsp:include page="/WEB-INF/pages/include/includeUeditor.jsp"></jsp:include>
</head>
<body class="off-nav">
	<jsp:include page="/WEB-INF/pages/fc/include/nav.jsp"></jsp:include>
	<div id="main-div">
		<h4 style="text-align: center;color: blue;">写通用实体</h4>
		<form class="add-form">
			<table>
				<tr>
					<td class="td1">缩览图　</td>
					<td class="td2">
						<div class="look-photo-area" id="img-area">
							空
						</div>
						<div class="look-photo-form-input">
							<i class="cus-information"></i>
							<span style="color:green;font-size: 12px;line-height: 14px;">支持格式png,jpg,gif,大小支持2M;最好是正方形尺寸。
								<br/>　 上传后，由于网络问题可能无法立即显示。
							</span>
							<input type="hidden" id="look_photo-type" value="general"/>
							<input id="look_photo_input" type="file" required="required" name="lookPhoto"/>
							<a class="btn btn-sm btn-success" id="btn_look_photo" href="javascript:void(0);">上传缩览图</a>
							<a id="refersh-img" href="javascript:void(0);" class="btn btn-primary btn-sm">刷新缩览图</a>
						</div>
					</td>
					<td class="td3" id="look_photo_res">
						${lookPhotoFilePath_info }
					</td>
				</tr>
			</table>
		</form>
		<form action="/general/add" method="post" class="add-form">
			<!-- 隐藏域 -->
			<input type="hidden" id="lookPhotoFilePath" name="lookPhotoFilePath" value="${lookPhotoFilePath }"/>
			<table>
				<tr>
					<td class="td1">通用实体标题　</td>
					<td class="td2"><input class="unit" type="text" name="title" placeholder="请输入通用实体标题，[1-24]" value="${title }"/></td>
					<td class="td3">${title_info }</td>
				</tr>
				
				<tr>
					<td class="td1">摘要　</td>
					<td class="td2"><textarea rows="4" cols="60" name="note" placeholder="请输入通用实体的摘要(介绍)，[1-120]">${note }</textarea></td>
					<td class="td3">${note_info }</td>
				</tr>
				<tr>
					<td class="td1">标签　</td>
					<td class="td2"><input class="unit" type="text" name="tags" value="${tags }" placeholder="请输入通用实体可用标签，[用英文逗号间隔，最多5个]"/></td>
					<td class="td3">${tags_info }</td>
				</tr>
				<tr style="height: 400px;">
					<td class="td1">通用实体主体　</td>
					<td style="width:65%;">
						<!-- 加载编辑器的容器 -->
						<script id="container" name="content" style="height: 300px;"
							type="text/plain">
							${content }
    					</script>
						<!-- 实例化编辑器 -->
						<script type="text/javascript">
							var ue = UE.getEditor('container', {
								toolbars : [mgtool]/*这里使用的是mgconfig.js中自定义的toolbars变量mgtool
													因为toolbars需要的是一个二维数组，所以使用 [mgtool]来赋值，
													这也是在mgconfig.js中将mgtool定义为一维数组的用意。（直接
													定义二维数组，toolbars:mgtool 是出不来效果的。）
													*/
							});
							//要使用mg.ueditor.tool.js工具的话，一定不要忘记设置ueId,默认是editor
							setUeId("container");
						</script>
					</td>
					<td class="td3">${content_info }</td>
				</tr>
				<tr>
					<td class="td1"></td>
					<td class="td2">
						<button class="btn btn-primary">　确　定　</button>　　　<a href="/general">返回通用实体列表</a>
					</td>
					<td class="td3"></td>
				</tr>
			</table>
		</form>
	</div>

	<jsp:include page="/WEB-INF/pages/include/copyright.jsp"></jsp:include>
</body>
</html>
